package net.lucamasini.ricette.restlet;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;
import org.restlet.routing.Template;

public class MyFirstRestletApplication extends Application {

    @Override
    public Restlet createInboundRoot() {
        Router router = new Router(getContext());
        router.setDefaultMatchingMode(Template.MODE_STARTS_WITH);
        router.attach("1/ricette/(id}", RicetteServerResources.class);

        return router;
    }
}
